package com.tuanzi.loan.workflow.service;

import java.util.List;

import com.tuanzi.loan.workflow.entity.Opinion;

/**
 * @author Ray
 * @date 2018/01/24
 */
public interface OpinionService {

	/**
	 * 职责：根据流程实例id获取所有已提交的审批意见
	 * 
	 * @param procInstId
	 *            流程实例id
	 * @return
	 */
	List<Opinion> findAllByProcInstId(String procInstId);

	Opinion findByProcDefIdAndTaskId(String procInstId, String taskId);

	/**
	 * 保存或更新审批意见
	 * 
	 * @param opinion
	 * @return
	 */
	Opinion saveOrUpdate(Opinion opinion);

}
